package my.study.designpattern.abstractfactory.example1;

public class Main {
	/**
	 * 
	 * @param args
	 */
	public static void main(String[] args) {
		ComputerProducer macP = MacProducer.getProducer();
		CPU c1 = macP.createCPU("c1");
		c1.setFrequency(100);
		c1.printCpu();
		Ram r1 = macP.createRam("r1");
		r1.setCapacity(200);
		r1.printRam();

		ComputerProducer pcP = PcProducer.getProducer();
		CPU c2 = pcP.createCPU("c2");
		c2.setFrequency(300);
		c2.printCpu();
		Ram r2 = pcP.createRam("r2");
		r2.setCapacity(400);
		r2.printRam();

	}

}
